Yep, you got lucky.
The study of chance, risk and chaos theory is a fascinating and complex line of study. I can recommend a book called 'against the gods, the remarkable story of risk '.
Basically, unless you are god, you cannot predict a random pattern of numbers similar to a lottery draw.
Most gambling systems, like counting cards in blackjack give the gambler minuscule improvement in his chances to avoid catastrophic failure.
Someone else in this thread also mentioned large groups of numbers, which are needed to have any chance to recognise any sort of pattern.
Insurance companies use these numbers to calculate how much risk they can afford based on the probability of a particular event happening once or reoccurring.